import Vue from 'vue'
import Router from 'vue-router'
import Login from './components/login.vue'
import Reg from './components/reg.vue'
import Home from './components/home.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path:'/home',
      name:'home',
      component:Home
    },
    {
      path:'/login',
      name:'login',
      component:Login
    },
    {
      path:'/reg',
      name:'reg',
      component:Reg
    }
  ]
})
